//
//  FZQHomeViewController.swift
//  FZQSinLangWeiBo
//
//  Created by fuzhiqiang on 17/1/17.
//  Copyright © 2017年 fzq. All rights reserved.
//

import UIKit

class FZQHomeViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
     setupUI()
    }
    //设置视图
    private func setupUI(){
        setupNav()
    }
//设置导航条
    private func setupNav(){
        //左侧
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", target: self, action: #selector(leftClick))
        //右侧
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: #selector(rightClick))
    }
}
    extension FZQHomeViewController{
        @objc fileprivate func leftClick(){
            print("左侧按钮点击")
    }
        @objc fileprivate func rightClick(){
           print("右侧按钮点击")
            let tempVC = FZQTempViewController()
            navigationController?.pushViewController(tempVC, animated: true)
        }
}
